package test;

import org.apache.commons.codec.binary.Base64;

import java.io.UnsupportedEncodingException;

/**
 * Created by admin on 2016/11/18.
 */
public class Decodetest {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        String text =new String(Base64.decodeBase64("PEZPTlQgc3R5bGU9ImNvbG9yOiMwMDAwMDA7IGZvbnQtc2l6ZToxNXB4OyBmb250LWZhbWlseTrLzszlOyI+sru24DUwMDwvRk9OVD4="),"GBK");
        String text="<font style=\"color:#000000; font-size:15px; font-family:宋体;\">想学习做涨停复制的股票，也可以加我QQ，503164010</font>";
        if(text.toLowerCase().contains("</font>")){
            text=text.substring(text.indexOf(">")+1,text.lastIndexOf("<"));
        }
        System.out.println(text);
    }
}
